/**
 * 
 */
package com.csc.empmngt.service.impl;

import java.util.List;

import com.csc.empmngt.dao.EmployeeDAO;
import com.csc.empmngt.dto.EmployeeDTO;
import com.csc.empmngt.service.EmployeeService;

/**
 * Implement all service operation of Employee
 * @author angelkid
 *
 */
public class EmployeeServiceImpl implements EmployeeService {

	private EmployeeDAO employeeDAO;
	/* (non-Javadoc)
	 * @see com.csc.empmngt.service.EmployeeService#findAll()
	 */
	public List<EmployeeDTO> findAll() {
		return employeeDAO.findAll();
	}

	/* (non-Javadoc)
	 * @see com.csc.empmngt.service.EmployeeService#create(com.csc.empmngt.dto.EmployeeDTO)
	 */
	public long create(EmployeeDTO employeeDTO) {
		return employeeDAO.create(employeeDTO);
	}

	/* (non-Javadoc)
	 * @see com.csc.empmngt.service.EmployeeService#read(long)
	 */
	public EmployeeDTO read(long id) {
		return employeeDAO.read(id);
	}

	/* (non-Javadoc)
	 * @see com.csc.empmngt.service.EmployeeService#update(com.csc.empmngt.dto.EmployeeDTO)
	 */
	public void update(EmployeeDTO employeeDTO) {
		employeeDAO.update(employeeDTO);
	}

	/* (non-Javadoc)
	 * @see com.csc.empmngt.service.EmployeeService#delete(long)
	 */
	public long delete(long id) {
		return employeeDAO.delete(id);
	}

	public EmployeeDAO getEmployeeDAO() {
		return employeeDAO;
	}

	public void setEmployeeDAO(EmployeeDAO employeeDAO) {
		this.employeeDAO = employeeDAO;
	}
	
	
}
